package com.black.service.controller;

import com.alibaba.fastjson2.JSONObject;
import com.black.protocol.Response;
import com.black.service.service.InfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/service/info")
public class InfoController {

    @Resource
    private InfoService infoService;

    @PostMapping("/detail")
    public Response<JSONObject> detail(@RequestBody JSONObject param) {
        return infoService.detail(param);
    }
}
